using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace RBAC.Api.Demain.Entities
{
    /// <summary>
    /// 用户表
    /// </summary>
    [Table("User")]
    public class User : BaseEntity
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [StringLength(100)]
        public string Username { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [StringLength(100)]
        public string Password { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [StringLength(100)]
        public string Name { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool State { get; set; } = false;

       
    }
} 